#include "loginwindow.h"
#include "mainwindow.h"

#include <QApplication>
#include <QFontDatabase>
#include <QFont>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    //加载字体图标
    QFontDatabase fontdb;
    auto fontid=  fontdb.addApplicationFont(":/fonts/Alibaba_PuHuiTi_2.0_55_Regular_55_Regular.ttf");
    fontdb.addApplicationFont(":/fonts/DingTalk-JinBuTi.ttf");
    fontdb.addApplicationFont(":/fonts/iconfont.ttf");
    //设置应用程序的字体
    QString fontname =  fontdb.applicationFontFamilies(fontid).at(0);
    a.setFont(QFont(fontname,10));

    LoginWindow w;
    w.show();
    return a.exec();
}
